<?php if (!defined('BASEPATH'))exit('No direct script access allowed');
/**
 * 问答控制器
 */
class mplat extends MY_Controller {

    function fee() {
        $plat_en = isset($_GET['name_en']) ? trim($_GET['name_en']) : "";
        //平台费用信息
        $baseinfo = $this->db->query("select pingtaifeiyong from tan_plat_info where plat_en = '$plat_en' order by id desc limit 1")->row_array();
        if(!$baseinfo){
            $this->display('deleted/index.html');exit;
        }
        $baseinfo['pingtaifeiyong'] = unserialize($baseinfo['pingtaifeiyong']);
        $this->assign("baseinfo",$baseinfo);
        $this->display('mplat/fee.html');
    }
    function introduction() {
        $plat_en = isset($_GET['name_en']) ? trim($_GET['name_en']) : "";
        //平台基本信息
        $baseinfo = $this->db->query("select qiyexinxi from tan_plat_info where plat_en = '$plat_en' order by id desc limit 1")->row_array();
        if(!$baseinfo){
            $this->display('deleted/index.html');exit;
        }
        $baseinfo['qiyexinxi'] = unserialize($baseinfo['qiyexinxi']);
        $baseinfo['qiyexinxi']['company_bg_type'] = $baseinfo['qiyexinxi']['company_bg_type'] ? $this->bgType[$baseinfo['qiyexinxi']['company_bg_type']]['title'] : $this->bgType[0]['title'];
        $this->assign("baseinfo",$baseinfo);
        $this->display('mplat/introduction.html');
    } 
    function image() {
        $plat_en = isset($_GET['name_en']) ? trim($_GET['name_en']) : "";
        //图片资料信息
        $baseinfo = $this->db->query("select zhengjianziliao,bangonghuanjing from tan_plat_info where plat_en = '$plat_en' order by id desc limit 1")->row_array();
        if(!$baseinfo){
            $this->display('deleted/index.html');exit;
        }
        $baseinfo['zhengjianziliao'] = unserialize($baseinfo['zhengjianziliao']);
        $baseinfo['bangonghuanjing'] = unserialize($baseinfo['bangonghuanjing']);
        $this->assign("baseinfo",$baseinfo);
        $this->display('mplat/image.html');
    }
    function team() {
        $plat_en = isset($_GET['name_en']) ? trim($_GET['name_en']) : "";
        //团队信息
        $baseinfo = $this->db->query("select tuanduijieshao from tan_plat_info where plat_en = '$plat_en' order by id desc limit 1")->row_array();
        if(!$baseinfo){
            $this->display('deleted/index.html');exit;
        }
        $baseinfo['tuanduijieshao'] = unserialize($baseinfo['tuanduijieshao']);
        $this->assign("baseinfo",$baseinfo);
        $this->display('mplat/team.html');
    }   
}
